<?php
namespace app\push\controller;
use think\Controller;
/*use app\push\controller\PushEvent;
use Workerman\Worker;
use Workerman\Connection\TcpConnection;
use Workerman\Lib\Timer;*/
class Index extends controller
{

    public function index2()
    {
        return $this->fetch('');
    }

    /**
     * 推送一个字符串
     */
    public function pushAString()
    {
        $user_id = '';
        $string = time() . 'Man Always Remember Love Because Of Romance Only';
        $string = input('msg') ? : $string;
        $push = new PushEvent();
        $push->setUser($user_id)->setContent($string)->push();


    }

    /**
     * 推送目标页
     *
     * @return \think\response\View
     */
    public function targetPage()
    {
        return view();
    }

}